package com.shenhua.kunpeng.utils;


import com.shenhua.kunpeng.dto.FillUserDTO;

public class FillUserDTOContextHolder {
    private static final ThreadLocal<FillUserDTO> DATASOURCE_CONTEXT_KEY_HOLDER = new ThreadLocal<>();
    public static void set(FillUserDTO loginUserDTO){
        DATASOURCE_CONTEXT_KEY_HOLDER.set(loginUserDTO);
    }

    public static FillUserDTO get(){
        return DATASOURCE_CONTEXT_KEY_HOLDER.get();
    }

    public static void remove(){
        DATASOURCE_CONTEXT_KEY_HOLDER.remove();
    }
}
